

let signals = require('signals');


let myObj = {
    started:new signals.Signal()
};

function onStarted(p1,p2){
    console.log(`p1:${p1},p2:${p2}`);
}

myObj.started.add(onStarted);

myObj.started.dispatch('foo','bar');

myObj.started.remove(onStarted);
